package com.groupbuying.storeinternal.dao;

import com.groupbuying.storeinternal.domain.StoreOpexRuleRelDO;

import java.util.List;
import java.util.Map;

import org.apache.ibatis.annotations.Mapper;
import org.springframework.stereotype.Repository;

/**
 * 门店、运营规则关联表
 * @author zmlmagic
 * @email zmlmagic@163.com
 * @date 2019-09-22 23:49:47
 * @des
 */

@Mapper
@Repository
public interface StoreOpexRuleRelDao {

	StoreOpexRuleRelDO get(Integer relId);
	
	List<StoreOpexRuleRelDO> list(Map<String, Object> map);
	
	int count(Map<String, Object> map);
	
	int save(StoreOpexRuleRelDO storeOpexRuleRel);
	
	int update(StoreOpexRuleRelDO storeOpexRuleRel);
	
	int remove(Integer rel_id);
	
	int batchRemove(Integer[] relIds);
	/**
	 * Description 根据storeID获取门店运营规则 <br>
	 *
	 * @author Ywxd <br>
	 * @param storeID
	 * @return opexRuleID
	 * @createDate 2019/4/18 17:11<br>
	 **/
	String getOpexRuleByStoreID(String storeID);
}
